import request from '@/plugins/request';

/* *** 注释信息 @author Zhou @date 2020/2/24 *** */
/* 治疗管理
/* ******************************************** */
// 治疗列表
export function GetTreatmentList (data) {
    return request({
        url: '/v1/clinic/treatment-manage/index',
        method: 'get',
        params: data
    });
}
// 操作人列表
export function GetOperatorList (data) {
    return request({
        url: '/v1/clinic/treatment-manage/operator-list',
        method: 'get',
        params: data
    });
}
//  个人治疗列表
export function GetViewTreatmentList (data) {
    return request({
        url: 'v1/clinic/treatment-manage/view-treatment',
        method: 'get',
        params: data
    });
}
//  治疗详情
export function GetTreatmentDetail (data) {
    return request({
        url: '/v1/clinic/treatment-manage/treatment-detail',
        method: 'get',
        params: data
    });
}
//  治疗统计(诊室)
export function GetTreatmentReport (data) {
    return request({
        url: '/v1/clinic/treatment-manage/report',
        method: 'get',
        params: data
    });
}
//  治疗统计(项目)
export function GetTreatmentprojectReport (data) {
    return request({
        url: '/v1/clinic/treatment-manage/project-report',
        method: 'get',
        params: data
    });
}
// 获取治疗列表树
export function GetTreatmentTree (data) {
    return request({
        url: '/v1/clinic/treatment-manage/clinic-project',
        method: 'get',
        params: data
    });
}
// 获取录入治疗列表
export function GetTreatmentInput (data) {
    return request({
        url: '/v1/clinic/treatment-manage/patient-clinic-list',
        method: 'get',
        params: data
    });
}
// 获取治疗详情
export function GetTreatmentInfo (data) {
    return request({
        url: '/v1/clinic/treatment-patient/treatment-detail',
        method: 'get',
        params: data
    });
}
// 获取身体部位信息
export function GetPosition (data) {
    return request({
        url: '/v1/system/base/body-parts/index',
        method: 'get',
        params: data
    })
}
// 获取半仓311部位
export function GetHalfCabin (data) {
    return request({
        url: '/v1/system/base/bc-body-parts/index',
        method: 'get',
        params: data
    })
}
// 修改获取治疗详情
export function GetPersonDetail (data) {
    return request({
        url: '/v1/clinic/treatment-manage/view-treatment',
        method: 'get',
        params: data
    })
}
// 录入治疗弹框查询列表
export function patientClinicList (data) {
    return request({
        url: '/v1/clinic/treatment-manage/patient-clinic-list',
        method: 'get',
        params: data
    })
}
// 提交治疗
export function postTemplate (data) {
    return request({
        url: '/v1/clinic/treatment-manage/add-treatment',
        method: 'post',
        data
    });
}
// 修改治疗
export function updateTemplate (data) {
    return request({
        url: '/v1/clinic/treatment-manage/update-treatment',
        method: 'post',
        data
    });
}
// 获取所有修改记录
export function GetUpdateList (data) {
    return request({
        url: '/v1/clinic/treatment-manage/treatment-record',
        method: 'get',
        params: data
    })
}
// 获取本次治疗详细
export function GetDetailNow (data) {
    return request({
        url: '/v1/patient/index/treatment-total',
        method: 'get',
        params: data
    })
}
// 编辑剩余量
export function clinictreatmentmanageupdateclinicnum (data) {
    return request({
        url: '/v1/clinic/treatment-manage/update-clinic-num',
        method: 'post',
        data
    })
}
// 获取本次治疗详细
export function clinictreatmentmanagecliniclist (data) {
    return request({
        url: '/v1/clinic/treatment-manage/clinic-list',
        method: 'get',
        params: data
    })
}

// 项目列表【左侧菜单】
export function getProjectList (data) {
    return request({
        url: '/v1/statistics/clinic/project-list',
        method: 'get',
        params: data
    })
}
//患者列表【治疗项目】
export function treamentUserList (data) {
    return request({
        url: '/v1/statistics/clinic/treament-user-list',
        method: 'get',
        params: data
    })
}
//患者列表【输液药品】
export function drugUserList (data) {
    return request({
        url: '/v1/statistics/clinic/drug-user-list',
        method: 'get',
        params: data
    })
}